package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CastToRef {

    private int beginIndex;
    private int endIndex;
    private Identifier castToRefIdentifier;

    public CastToRef(int beginIndex, Identifier castToRefIdentifier) {
        this.beginIndex = beginIndex;
        this.endIndex = castToRefIdentifier.getEndIndex();
        this.castToRefIdentifier = castToRefIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getCastToRefIdentifier() {
        return castToRefIdentifier;
    }

}
